package com.leadbank.activemq.amq.common;

/**
 * Created by hp on 2018/12/27.
 */
public class ConnectionParam {

    private String URL = "tcp://127.0.0.1:61616";
    private String userName = "admin";
    private String password = "admin";
    private int maxConnection = 10;//connection最大连接数
    private int minConnection = 1;//connection最小连接数
    private int maxSesstionPerConnection = 100;//每个connection可建的最大session数
    private int minSesstionPerConnection = 10;//每个connection可建的最小session数
    private int maxProducerPerSession = 10;//每个session可建的最大producer数
    private int minProducerPerSession = 1;//暂未使用
    private int maxConsumerPerSession = 10;//每个session可建的最大consumer数
    private int minConsumerPerSession = 1;//暂未使用

    public String getURL() {
        return URL;
    }

    public void setURL(String URL) {
        this.URL = URL;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getMaxConnection() {
        return maxConnection;
    }

    public void setMaxConnection(int maxConnection) {
        this.maxConnection = maxConnection;
    }

    public int getMinConnection() {
        return minConnection;
    }

    public void setMinConnection(int minConnection) {
        this.minConnection = minConnection;
    }

    public int getMaxSesstionPerConnection() {
        return maxSesstionPerConnection;
    }

    public void setMaxSesstionPerConnection(int maxSesstionPerConnection) {
        this.maxSesstionPerConnection = maxSesstionPerConnection;
    }

    public int getMinSesstionPerConnection() {
        return minSesstionPerConnection;
    }

    public void setMinSesstionPerConnection(int minSesstionPerConnection) {
        this.minSesstionPerConnection = minSesstionPerConnection;
    }

    public int getMaxProducerPerSession() {
        return maxProducerPerSession;
    }

    public void setMaxProducerPerSession(int maxProducerPerSession) {
        this.maxProducerPerSession = maxProducerPerSession;
    }

    public int getMinProducerPerSession() {
        return minProducerPerSession;
    }

    public void setMinProducerPerSession(int minProducerPerSession) {
        this.minProducerPerSession = minProducerPerSession;
    }

    public int getMaxConsumerPerSession() {
        return maxConsumerPerSession;
    }

    public void setMaxConsumerPerSession(int maxConsumerPerSession) {
        this.maxConsumerPerSession = maxConsumerPerSession;
    }

    public int getMinConsumerPerSession() {
        return minConsumerPerSession;
    }

    public void setMinConsumerPerSession(int minConsumerPerSession) {
        this.minConsumerPerSession = minConsumerPerSession;
    }
}
